import { configureStore } from '@reduxjs/toolkit'

import TabReducers from './reducers/tab'

export default configureStore({
  reducer: {
    tab: TabReducers
  },
  middleware: (getDefaultMiddleware) =>
    getDefaultMiddleware({
      //关闭redux序列化检测, 异步函数请求接口时，返回的对象无法序列化
      serializableCheck: false
    })
})
